Sugar Water Level Sensor
Water level sensor, used to detect water level height. It can provide a numerical value that reflects the water level to some extent. When not immersed in water, the value is 0. As the water level rises, the feedback analog value increases (non-linearly).
Parameters
| Size | 24 x 24 x 70 mm |
|---|---|
| Weight | 6.7 g |
| Signal | Analog Input |
| Range | 0~3.3V Corresponds to Micro:bit 0~1023 |
| Detection target | Water Level |
Note
1、The water level reading is nonlinear and can only reflect the water level status to a certain extent.
2、It is strictly prohibited to submerge the plastic housing part in water.
Wiring
Connect the light sensor module to P1 on the Robotbit Edu using a 3-pin terminal cable.
(Only P0, P1, and P2 pins can be connected, as they have analog read functionality.)
After turning on the Robotbit power, you will see the red light at the bottom of the soil module illuminate (indicating the module is powered normally).

Programming
#Water Level Reminder
When the water level exceeds a certain height, i.e., greater than the threshold (set here to 400), an alarm is triggered. If the threshold is difficult to reach, the value can be set lower.